import request from '@/utils/request'

// 查询老师个人信息列表
export function listArchives(query) {
  return request({
    url: '/archives/archives/list',
    method: 'get',
    params: query
  })
}

// 查询老师个人信息详细
export function getArchives(id) {
  return request({
    url: '/archives/archives/' + id,
    method: 'get'
  })
}

// 新增老师个人信息
export function addArchives(data) {
  return request({
    url: '/archives/archives',
    method: 'post',
    data: data
  })
}

// 修改老师个人信息
export function updateArchives(data) {
  return request({
    url: '/archives/archives',
    method: 'put',
    data: data
  })
}

// 删除老师个人信息
export function delArchives(id) {
  return request({
    url: '/archives/archives/' + id,
    method: 'delete'
  })
}
